<?php
class Personaladdress_Data_Getaddressdata implements Personaladdress_Data_Mainable{
    
    private $core_controller_selectdata;
    
    public function __construct() {
        $this->core_controller_selectdata = new Core_Controller_Selectdata;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "SELECT telephone_number, street_name, house_number, apartament_number, postal_code, city, region, vat_number FROM personal_data WHERE username='".$_SESSION['username']."';";
        //echo $variables['query'];
        //die();
        return $this->core_controller_selectdata->main($variables);
    }
}
